package tgc.edu.zz.custom;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;


public class ServiceUtils<E,ID> {

	@Autowired
	private DaoUtils<E, ID> dao;
	
	  	public List<E> findAll() {
	        return dao.findAll();
	    }
	    
	    public void delete(ID id) {
	    	dao.delete(id);
	    }
	    
	    public void insert(E e) {
	    	dao.insert(e);
	    }
	    
	    public void update(E e) {
	    	dao.update(e);
	    }
    
	    public E findById(ID id) {
	    	return dao.findById(id);
	    }
    
}
